// SSITemplateMain.cpp
// author: Johannes Wagner <johannes.wagner@informatik.uni-augsburg.de>
// created: xxxx/xx/xx
// Copyright (C) University of Augsburg

#include "ssi.h"
using namespace ssi_sensor;
using namespace ssi_frame;
using namespace ssi_graphic;
using namespace ssi_ioput;
using namespace ssi_signal;

#ifdef USE_SSI_LEAK_DETECTOR
	#include "SSI_LeakWatcher.h"
	#define new DEBUG_NEW
	#undef THIS_FILE
	static char THIS_FILE[] = __FILE__;
#endif

#ifdef USE_VLD_LEAK_DETECTOR
	#include "vld.h"
#endif

int main (int argc, char **argv) {

#ifdef USE_SSI_LEAK_DETECTOR
	{
#endif

	char info[1024];
	ssi_sprint (info, "\n%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION);
	TheFramework::Instance ()->SetAutoThread (true);

	TheFramework::Instance ()->Start ();

	ssi_print ("Press enter to stop!\n");
	getchar ();

	TheFramework::Instance ()->Stop ();
	TheFramework::Instance ()->Shutdown ();

#ifdef USE_SSI_LEAK_DETECTOR
	}
	_CrtDumpMemoryLeaks();
#endif

	return 0;
}
